package com.yayhos.parallaxrecyclerview.sample;

import com.yayhos.parallaxrecyclerview.RecyclerView;
import com.yayhos.parallaxrecyclerview.sample.slice.RecyclerAdapter;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.colors.RgbColor;
import ohos.agp.window.service.WindowManager;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        WindowManager.getInstance().getTopWindow().get().setStatusBarColor(new RgbColor(48, 63, 159).asArgbInt());
        super.setUIContent(ResourceTable.Layout_ability_main);
        RecyclerView listContainer = (RecyclerView) findComponentById(ResourceTable.Id_list);
        RecyclerAdapter testRecyclerAdapter = new RecyclerAdapter(this);
        listContainer.setItemProvider(testRecyclerAdapter);

    }
}
